<template>
	<view>
		<view class="all" :style="{'height': windowHeight + 'px'}">空空如也！</view>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				windowHeight: 0
			};
		},
		onLoad() {
			this.getWindowsHeight()
		},
		methods: {
			getWindowsHeight() {
				this.windowHeight = uni.getSystemInfoSync().windowHeight
				console.log(this.windowHeight)
			}
		}
	}
</script>

<style lang="scss">
	.all {
		display: flex;
		color: #aaaaaa;
		justify-content: center;
		align-items: center;
	}
</style>
